home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13565 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: news.uoknor.edu!news
  2. From: Don Cruickshank <don@rmg.uoknor.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: BC++31 calling MS V5.1 Fortran DLL's
  5. Date: Mon, 08 Apr 1996 18:29:50 -0700
  6. Organization: University of Oklahoma
  7. Message-ID: <3169BD8E.5918@rmg.uoknor.edu>
  8. NNTP-Posting-Host: sigma1.pge.uoknor.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win16; I)
  13.  
  14. This is a follow-on to a question asked recently about calling Lahey 
  15. Fortran from BC++4.0.  
  16.  
  17. (There hasn't been much response over in comp.lang.fortran; perhaps the 
  18. question was too product-specific.)
  19.  
  20. We're having all sorts of difficulties here trying to call Msoft V5.1 
  21. DLL's from BC++31.  I've searched through Msoft's Knowledge base and only 
  22. found one reference to Borland and that was to say that Msoft does not 
  23. support mixed-language programming with non-Msoft products (what a 
  24. surprise).
  25.  
  26. Msoft does include some mixed-language examples in the Fortran V5.1
  27. manual, but complicates matters (for us, anyway) by including C calls
  28. within the Fortran code.  It also seems to be Win3.0 centric rather than
  29. Win3.1 (if that makes a great difference?).
  30.  
  31. Borland is even less supportive.  I've found nothing at Borland's site
  32. that even suggests that BC31 can call Msoft Fortran V5.1 DLL's.
  33.  
  34. We've also had a look at Petzold's bible; unfortunately, the section of
  35. interest starts at page 935 and concerns calling C generated DLL's.
  36.  
  37. With aid (or lack of) from the above, we have managed to create a DLL and
  38. a Windows EXE, but the program does not function correctly (how's that
  39. for a description!).
  40.  
  41. A big part of the problem is that we're inexperienced with Windows
  42. programming to begin with, but I've got to think that some other folks
  43. have banged their heads on this problem before.
  44.  
  45. What we really need is the simplest of examples which show how the
  46. linkage is established and some of the caveats in compiling/linking
  47. (i.e., DS != SS, import/export definitions, C vs. C++ compiles, etc.).
  48.  
  49. Any pointers would be greatly appreciated.
  50.  
  51. Don
  52. =-=-=-=-=-=-=-=-=-=-=-=-=-=
  53. Don Cruickshank
  54. University of Oklahoma         |  Internet: don@rmg.uoknor.edu
  55. Rock Mechanics Institute (RMI) |  Tel.: 405-325-2900 (x126)
  56. Energy Center P119             |  Fax.: 405-325-7511 (or 7477)
  57. Norman, OK 73019               |  Office: EC-T105
  58.